<!DOCTYPE html>
<html>

<head>
  <title><%= title %></title>
  <%- include common %>
</head>

<body>
  <%-  include('head',{title:'index',username:username}) %>
  <h2 class="text-danger"> <%- title %>  </h2>


<%  if(username){    %>
      <h2>用户名：<%- username %></h2>
      <p>登陆时间 <%- logintime %></p>
      <button class="btn btn-info" onclick="window.location.href='/movie'">电影列表</button>
      <button class="btn btn-danger" onclick="window.location.href='/logout'">退出登录</button>
<%  }else{             %>  
      <button class="btn btn-primary" onclick="window.location.href='/login'">登录</button>
      <button class="btn btn-success" onclick="window.location.href='/register'">注册</button>
<%  }     %>        
 




  <%- include  foot %>
</body>

</html>